package com.lin.thread;

import java.util.concurrent.FutureTask;

public class da {
    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        MyThreadImpl myThreadImpl = new MyThreadImpl();
        CallableTest callableTest = new CallableTest();
        myThread.start();
        Thread thread = new Thread(myThreadImpl);
        thread.start();
        FutureTask<String> futureTask = new FutureTask<>(callableTest);
        new Thread(futureTask).start();

    }
}
